package com.zjdiepu.www.model.third.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.GroupSequence;
import javax.validation.constraints.Null;

import org.hibernate.validator.constraints.NotBlank;

import com.zjdiepu.www.base.annotation.Add;
import com.zjdiepu.www.base.annotation.Update;
import com.zjdiepu.www.base.core.BaseModel;

/**
 * 车系<br/>
 * @author xiongxiaotun<br/>
 * @time 2017年03月23日 20时33分<br/>
 * @since 1.0<br/>
 */
@GroupSequence({Add.class, Update.class, JuheSeries.class})
public class JuheSeries extends BaseModel {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 车辆品牌id
	 */
	@ApiModelProperty(name="brandId",required=false,value="车辆品牌id")
	@NotBlank(message="车辆品牌标识{message.null}", groups={Add.class, Update.class})
	private String brandId;
	
	/**
	 * 品牌id
	 */
	@ApiModelProperty(name="ppid",required=false,value="品牌id")
	@NotBlank(message="车辆品牌标识{message.null}", groups={Add.class, Update.class})
	private String ppid;
	
	/**
	 * 品牌名称
	 */
	@ApiModelProperty(name="ppname",required=false,value="品牌名称")
	@NotBlank(message="品牌名称{message.null}", groups={Add.class, Update.class})
	private String ppname;
	
	/**
	 * 系列id
	 */
	@ApiModelProperty(name="xlid",required=false,value="系列id")
	@Null(message="系列标识只能为空", groups={Add.class, Update.class})
	private String xlid;
	
	/**
	 * 系列名
	 */
	@ApiModelProperty(name="xlname",required=false,value="系列名称")
	@NotBlank(message="系列名称{message.null}", groups={Add.class, Update.class})
	private String xlname;
	
	public String getBrandId(){
		return this.brandId;
	}
	
	public void setBrandId(String brandId){
		this.brandId = brandId;
	}

	public String getPpid(){
		return this.ppid;
	}
	
	public void setPpid(String ppid){
		this.ppid = ppid;
	}

	public String getPpname(){
		return this.ppname;
	}
	
	public void setPpname(String ppname){
		this.ppname = ppname;
	}

	public String getXlid(){
		return this.xlid;
	}
	
	public void setXlid(String xlid){
		this.xlid = xlid;
	}

	public String getXlname(){
		return this.xlname;
	}
	
	public void setXlname(String xlname){
		this.xlname = xlname;
	}

	@Override
	public String toString() {
		return super.toString() + "JuheSeries [brandId = " + brandId + ", ppid = " + ppid + ", ppname = " + ppname + ", xlid = " + xlid + ", xlname = " + xlname + "]";
	}
    
}